package com.ncsc.erp.model;
// Generated 20 มิ.ย. 2557, 12:55:43 by Hibernate Tools 3.4.0.CR1


import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * WfFlowTrans generated by hbm2java
 */
@Entity
@Table(name="wf_flow_trans"
    ,catalog="ncsc_erp"
)
public class WfFlowTrans  implements java.io.Serializable {


     private long ftNo;
     private HrEmp hrEmp;
     private String ftCode;
     private String ftDescr;
     private Date ftCreatedDtm;
     private Set<WfFlowTransLine> wfFlowTransLines = new HashSet<WfFlowTransLine>(0);
     private Set<SdQuotation> sdQuotations = new HashSet<SdQuotation>(0);

    public WfFlowTrans() {
    }

	
    public WfFlowTrans(long ftNo) {
        this.ftNo = ftNo;
    }
    public WfFlowTrans(long ftNo, HrEmp hrEmp, String ftCode, String ftDescr, Date ftCreatedDtm, Set<WfFlowTransLine> wfFlowTransLines, Set<SdQuotation> sdQuotations) {
       this.ftNo = ftNo;
       this.hrEmp = hrEmp;
       this.ftCode = ftCode;
       this.ftDescr = ftDescr;
       this.ftCreatedDtm = ftCreatedDtm;
       this.wfFlowTransLines = wfFlowTransLines;
       this.sdQuotations = sdQuotations;
    }
   
     @Id 

    
    @Column(name="FT_NO", unique=true, nullable=false)
    public long getFtNo() {
        return this.ftNo;
    }
    
    public void setFtNo(long ftNo) {
        this.ftNo = ftNo;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="FT_CREATED_BY_EMP_NO")
    public HrEmp getHrEmp() {
        return this.hrEmp;
    }
    
    public void setHrEmp(HrEmp hrEmp) {
        this.hrEmp = hrEmp;
    }

    
    @Column(name="FT_CODE", length=50)
    public String getFtCode() {
        return this.ftCode;
    }
    
    public void setFtCode(String ftCode) {
        this.ftCode = ftCode;
    }

    
    @Column(name="FT_DESCR", length=500)
    public String getFtDescr() {
        return this.ftDescr;
    }
    
    public void setFtDescr(String ftDescr) {
        this.ftDescr = ftDescr;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="FT_CREATED_DTM", length=19)
    public Date getFtCreatedDtm() {
        return this.ftCreatedDtm;
    }
    
    public void setFtCreatedDtm(Date ftCreatedDtm) {
        this.ftCreatedDtm = ftCreatedDtm;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="wfFlowTrans")
    public Set<WfFlowTransLine> getWfFlowTransLines() {
        return this.wfFlowTransLines;
    }
    
    public void setWfFlowTransLines(Set<WfFlowTransLine> wfFlowTransLines) {
        this.wfFlowTransLines = wfFlowTransLines;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="wfFlowTrans")
    public Set<SdQuotation> getSdQuotations() {
        return this.sdQuotations;
    }
    
    public void setSdQuotations(Set<SdQuotation> sdQuotations) {
        this.sdQuotations = sdQuotations;
    }




}


